﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public enum CellState
{
    None,
    Fixed,
    Cube
}

public class Cell : MonoBehaviour
{
    public Vector2 positon;

    public CellState state = CellState.None;



    private void Update()
    {
        if (state == CellState.None)
        {
            Hide();
        }
        else
        {
          Show();
        }
    }

    private void Show()
    {
        GetComponent<SpriteRenderer>().enabled = true;
    }

    private void Hide()
    {
        gameObject.GetComponent<SpriteRenderer>().enabled = false;
    }
}